<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Store extends CI_Controller {

    public function index() {
        // Load the library here or you can configure it in config/autoload as it's needed everywhere
        $this->load->library('Jottla_Template');

        // Set title which can be accessed from anywhere using
        // $this->jottla_template->getTitle() method
        // Also the static web title can be set in config/jottla_template
        $this->jottla_template->setTitle("My Store");

        // Set page title which can be accessed from anywhere using
        // $this->jottla_template->getPageTitle() method
        $this->jottla_template->setPageTitle("Store");

        // lets tell template about your panels and modules
        // nothing is not loaded instantly.
        // it's just saying the template what are the things it needs to consider
        // in the master view when you call $this->jottla_template->getPanel('header');
        // then it'll be rendered. So, it's on your demand.
        // In the panel or anywhere you can call the module, $this->jottla_template->getModule('footer_links');
        $this->jottla_template->setPanels(array('header', 'body', 'footer'));
        $this->jottla_template->setModules(array('footer_links'));

        //
        $this->jottla_template->data["items"] = array (
            'Computer',
            'Cell Phone',
            'Laptop',
            'Car'
        );
        
        $this->jottla_template->setBody("store");
        $this->jottla_template->load();
    }

}
